﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using FileData.Utils.Currency.FileUtils;
using FileData.Utils.Currency;

namespace FileData.ViewManger
{
    public partial class FileControl : UserControl
    {
        public FileControl()
        {
            InitializeComponent();
        }


        private void button2_Click(object sender, EventArgs e)
        {
            new DataUtils.ShortData().ShortSingle(new FileHelper().SelectFile());
        }

        private void button3_Click(object sender, EventArgs e)
        {
            new DataUtils.ShortData().ShortFloder(new FloderHelper().SelectFloder());

        }

        private void button4_Click(object sender, EventArgs e)
        {
            new DataUtils.RestoreData().RestoreSingleFile(new FileHelper().SelectFile(), checkBox1.Checked);
        }

        private void button5_Click(object sender, EventArgs e)
        {
            new DataUtils.RestoreData().RestoreFloder(new FloderHelper().SelectFloder(), checkBox1.Checked);
        }
    }
}
